<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2019/2/20
 * Time: 17:55
 * name:新增需要续费学生记录
 * url:/erpStudent/add_need_renew_record
 */

//获取参数
$onrr_osid    = $route->bodyParams['onrr_osid'];    //学员id
$onrr_oesid   = $route->bodyParams['onrr_oesid'];   //关联机构id
$onrr_year    = $route->bodyParams['onrr_year'];    //年份
$onrr_month   = $route->bodyParams['onrr_month'];   //月份
$onrr_ocid    = $route->bodyParams['onrr_ocid'];    //课程id
$onrr_status  = $regexpObj->bodyV($response,$route,'onrr_status','NUMBER'); //续费状态

//写入数组
$insertArr = [
    'onrr_osid'    => $onrr_osid,
    'onrr_oesid'   => $onrr_oesid,
    'onrr_year'    => $onrr_year,
    'onrr_month'   => $onrr_month,
    'onrr_ocid'    => $onrr_ocid,
    'onrr_status'  => $onrr_status,
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_need_renew_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );